//
//  YWAnimationView.h
//  maintain
//
//  Created by 郑想 on 15/12/17.
//  Copyright © 2015年 ewin. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, YWAnimationViewShowStatus) {
    YWAnimationViewShowStatusUnfinish = 0,
    YWAnimationViewShowStatusPending = 1,
    YWAnimationViewShowStatusExpire = 2,
    YWAnimationViewShowStatusExpired = 3,
    YWAnimationViewShowStatusFinished = 4
};

typedef NS_ENUM(NSInteger, YWAnimationViewType) {
    YWAnimationViewTypeRound = 0, //圆形
    YWAnimationViewTypeRectangle = 1, //矩形
};

@interface YWAnimationView : UIImageView
@property (nonatomic, assign) YWAnimationViewShowStatus showStatus;
+ (instancetype)animationView;

- (void)startAnimationWithDuration:(NSTimeInterval)duration repeatCount:(NSUInteger)repeatCount completion:(void (^)())completion;

@property (nonatomic, assign) YWAnimationViewType type;

@end
